package Package.Example_6;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Example_6 {
    public static  void Example_6() throws IOException {
        try (ServerSocket ss = new ServerSocket(9900)) {
            while (true) {
                Socket s = ss.accept();
                Thread thread = new Thread(new Srver(s));
                thread.start();
            }
        }catch (IOException e){
            e.printStackTrace();
        }

    }

}
